<template>
  <div class="pageTemplate">
    <van-form @submit="onSubmit" :show-error-message="true" class="vanForm">
      <draggableItem v-for="element in drawingList" :key="element.renderKey" :element="element" />
    </van-form>
  </div>
</template>

<script>
import draggableItem from '@/views/tool/insure/components/draggableItem'
import { mapState } from 'vuex'
export default {
  name: '',
  components: {
    draggableItem
  },
  data() {
    return {}
  },
  computed: {
    ...mapState('pageData', ['activeFormData', 'formDataList']),
    // ...mapGetters('pageData', ['activeId']),
    drawingList() {
      return this.formDataList
    }
  },
  methods: {
    onSubmit() {

    },
    currentClick() {

    }
  }
}
</script>